import { Entity, PrimaryColumn, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity('teacher')
export class Teacher {
    @PrimaryGeneratedColumn('increment', { 
      type: 'integer', 
      name: 'tno' 
    })
    tno: number;

    @Column({ name: 'tname', type: 'varchar', length: 50 })
    tname: string;

    @Column({ name: 'tdept', type: 'varchar', length: 50 })
    tdept: string;

    @Column({ name: 'title', type: 'varchar', length: 50 })
    title: string;
}